package com.tanhua.api.impl.db;

import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.RandomUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tanhua.api.db.SoulDimensionsApi;
import com.tanhua.domain.db.SoulDimensions;
import com.tanhua.mapper.db.SoulDimensionsMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * @author Richard Wang
 * @date 2021/9/5 21:18
 */
@Service
public class SoulDimensionsApiImpl implements SoulDimensionsApi {

    @Autowired
    private SoulDimensionsMapper soulDimensionsMapper;
    @Override
    public List<SoulDimensions> findDimensions(Integer standardId) {

        QueryWrapper<SoulDimensions> qr = new QueryWrapper<>();
        qr.eq("level_id",standardId);
        List<SoulDimensions> allList = soulDimensionsMapper.selectList(qr);
        return new ArrayList<>(allList);
    }
}
